package com.ternnetwork.core.entity.org;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Embeddable
public class OrganizationUserRelationshipId implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6914348366309541514L;
	
	@Column(name="USER_ID",nullable=false)
	private long userId;
	
	@Column(name="ORG_ID",nullable=false)
	private long organizationId;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(long organizationId) {
		this.organizationId = organizationId;
	}

	public OrganizationUserRelationshipId(long userId, long organizationId) {
		super();
		this.userId = userId;
		this.organizationId = organizationId;
	}

	public OrganizationUserRelationshipId() {
		super();
	}
	

}
